package com.model;

import java.util.Date;

/**
 *
 * @author Lang Van Hao
 */
public class Comment {

    private int commentID;
    private int defectID;
    private String userName;
    private String content;
    private Date createDate;

    /**
     * Contructor for CommentClass
     */
    public Comment() {
    }

    /**
     * Contructor for CommentClass
     * @param commentID
     * @param defectID
     * @param userName
     * @param content
     * @param createDate
     */
    public Comment(int commentID, int defectID, String userName, String content,
            Date createDate) {
        this.setData(commentID, defectID, userName, content, createDate);
    }

    /**
     * Method to set data for CommentClass
     * @param commentID
     * @param defectID
     * @param userName
     * @param content
     * @param createDate
     */
    public void setData(int commentID, int defectID, String userName, String content,
            Date createDate) {
        this.setCommentID(commentID);
        this.setDefectID(defectID);
        this.setUserName(userName);
        this.setContent(content);
        this.setCreateDate(createDate);
    }

    /**
     * @return the commentID
     */
    public int getCommentID() {
        return commentID;
    }

    /**
     * @param commentID the commentID to set
     */
    public void setCommentID(int commentID) {
        this.commentID = commentID;
    }

    /**
     * @return the defectID
     */
    public int getDefectID() {
        return defectID;
    }

    /**
     * @param defectID the defectID to set
     */
    public void setDefectID(int defectID) {
        this.defectID = defectID;
    }

    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate the createDate to set
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
